﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using VueShopApi.Common;

namespace VueShopApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class GoodsController : AuthorizeController
    {
        private readonly ILogger<GoodsController> _logger;
        private readonly IFreeSql _context;

        public GoodsController(ILogger<GoodsController> logger, IFreeSql context)
        {
            _logger = logger;
            _context = context;
        }

        /// <summary>
        /// 获取所有管理员
        /// </summary>
        /// <param name="query"></param>
        /// <param name="pagenum"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> GetAllGoods(string query, int pagenum = 1, int pagesize = 10)
        {
            return ServerResponse.Yes();
        }
    }
}
